package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

/*
 *@auther szh
 *@create 2021/4/10
 *@time 19:05
 */

public interface AdChannelService extends IService<AdChannel> {

    /**
     * 根据频道名称进行模糊分页查询
     * @param dto
     * @return
     */
    public ResponseResult findByNameAndPage(ChannelDto dto);

    /**
     * 新增频道
     * @param adChannel
     * @return
     */
    public ResponseResult saveAdChannel(AdChannel adChannel);

    /**
     * 修改频道信息
     * @param adChannel
     * @return
     */
    public ResponseResult updateAdChannel(AdChannel adChannel);

    /**
     * 根据id删除频道
     * @param id
     * @return
     */
    public ResponseResult deleteAdChannel(Integer id);
}
